<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>vue</title>
        <!-- 引入vue文件-->
		<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
	</head>
	<body>
		<div id="vue">
			{{message}}
		</div>
	</body>
	<script type="application/javascript">
		var vm=new Vue({
			el:'#vue',
			data:{
				message:'<h1>hello world!</h1>'
			}
		})
		//获取挂在vue的标签
		console.log(vm.$el);//
		//给标签设置背景
		vm.$el.style.background='red';
		//vm.$data   获取vue实例的data
		alert(vm.$data.message);
	</script>
</html>
